//
//  LGCiTangPaperTableViewCell.m
//  ligenyun
//
//  Created by Mac on 2018/3/27.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "LGCiTangPaperTableViewCell.h"

@interface  LGCiTangPaperTableViewCell()
@property(nonatomic, strong) STLabel                      *gennerLable;
@property(nonatomic, strong) STLabel                      *nameLable;
@property(nonatomic, strong) UIImageView                     *iconView;
@property(nonatomic, strong) STLabel                     *desLable;
@end
@implementation LGCiTangPaperTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 80;
}
#pragma mark --subView
- (void)configSubView{
    
    self.backgroundColor = [UIColor clearColor];
    UIView * roundView = [[UIView alloc] initWithFrame:CGRectMake(40, 0, UIScreenWidth - 80, [LGCiTangPaperTableViewCell cellHeight])];
    [self addSubview:roundView];
    
    UIView * line = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1, [LGCiTangPaperTableViewCell cellHeight])];
    line.backgroundColor = [UIColor blackColor];
    [roundView addSubview:line];
    
    UIView * topline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, roundView.width, 1)];
    topline.backgroundColor = [UIColor blackColor];
    [roundView addSubview:topline];
    
    UIView * rightline = [[UIView alloc] initWithFrame:CGRectMake(roundView.width - 1, 0, 1, [LGCiTangPaperTableViewCell cellHeight])];
    rightline.backgroundColor = [UIColor blackColor];
    [roundView addSubview:rightline];
    
    
    self.gennerLable  = [[STLabel alloc] initWithFrame:CGRectMake(1, 1, 20, [LGCiTangPaperTableViewCell cellHeight] - 1)
                                                     text:@"一代"
                                                textColor:FlatBlack
                                                     font:14
                                              isSizetoFit:NO
                                            textAlignment:NSTextAlignmentCenter];
    [self.gennerLable st_showRightLine:self.gennerLable.height];
    [roundView addSubview:self.gennerLable];
    
    self.nameLable  = [[STLabel alloc] initWithFrame:CGRectMake(self.gennerLable.right, 1, 50, [LGCiTangPaperTableViewCell cellHeight] - 1)
                                                  text:@"太公"
                                             textColor:FlatBlack
                                                  font:26
                                           isSizetoFit:NO
                                         textAlignment:NSTextAlignmentCenter];
    [self.nameLable st_showRightLine:self.nameLable.height];
    [roundView addSubview:self.nameLable];
    
    self.iconView = [[UIImageView alloc] initWithFrame:CGRectMake(self.nameLable.right + 1, 1, 50, [LGCiTangPaperTableViewCell cellHeight] - 2)];
    self.iconView.image = [UIImage imageNamed:@"图02"];
    [roundView addSubview:self.iconView];
    
    self.desLable  = [[STLabel alloc] initWithFrame:CGRectMake(self.iconView.right + 1, 1, roundView.width -self.iconView.right -2 , [LGCiTangPaperTableViewCell cellHeight] - 1)
                                                text:@"大萨达撒大所大多发大水大所大所大所多安达市打所大所as大萨达所多大萨达撒多"
                                           textColor:FirstTextColor
                                                font:13
                                         isSizetoFit:NO
                                       textAlignment:NSTextAlignmentLeft];
    [roundView addSubview:self.desLable];
    
    UIView * boline = [[UIView alloc] initWithFrame:CGRectMake(0, [LGCiTangPaperTableViewCell cellHeight] - 1, roundView.width, 0.5)];
    boline.backgroundColor = TM_lineColor;
    [roundView addSubview:boline];
}

@end
